package com.run_java_test.test3;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/*
这个类 放在 D:\test\com\run_java_test\test3\DynamicController.java 中
 */
@RestController
public class DynamicController {

    @GetMapping("/dynamic")
    public String dynamic() {
        return "This is a dynamically loaded controller! new string test";
    }
}
